package com.tiancikeji.zaoke.app.model.order;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class PayMode {
	
	public static int MODE_OFFLINE = 0;
	
	public static int MODE_BALANCE = 1;
	
	public static int MODE_ALI_WAP = 2;
	
	public static int MODE_ALI_APP = 3;
	
	public static int MODE_ALI_WEB = 4;

	private int mode;
	
	private String name;
	
	private boolean disable;
	
	public int getMode() {
		return mode;
	}

	public void setMode(int mode) {
		this.mode = mode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	public boolean isDisable() {
		return disable;
	}

	public void setDisable(boolean disable) {
		this.disable = disable;
	}
}
